import request from '@/utils/request'
export const getDepartmentAPI = () => request.get('/company/department')
export const getChargeAPI = () => request.get('/sys/user/simple')
export const addDeptsAPI = (data) => request.post('/company/department', data)

// 获取部门详情
export const getDepartMentDetailAPI = (id) => request.get(`/company/department/${id}`)
export const updateDepartMentAPI = (data) => request.put(`/company/department/${data.id}`, data)
